<template>
	<view>
		<view>消息列表</view>
		<u-tabbar :value="tabBarvalue" @change="change" :fixed="true" :placeholder="true" :safeAreaInsetBottom="true">
			<u-tabbar-item text="首页" icon="home"></u-tabbar-item>
			<u-tabbar-item text="行程" icon="car"></u-tabbar-item>
			<u-tabbar-item text="排班" icon="calendar"></u-tabbar-item>
			<u-tabbar-item text="消息" icon="chat"></u-tabbar-item>
		</u-tabbar>
	</view>
</template>

<script>
	import {
		changeMenu
	} from '../../api/constant';
	import { readNotice } from '../../api/noticeApi';
	export default {
		data() {
			return {
				tabBarvalue: 3,
			}
		},
		onLoad() {
			this.loadNotice();
		},
		methods: {
			change(param) {
				changeMenu(param);
			},
			loadNotice(){
				readNotice().then(res=>{
					console.log('全部读取');
				})
			}
		}
	}
</script>

<style>

</style>